(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "maishu-services-sdk", "json!websiteConfig"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const maishu_services_sdk_1 = require("maishu-services-sdk");
    const json_websiteConfig_1 = require("json!websiteConfig");
    // let configText = require("text!projectWebConfig");
    // let websiteConfig: MyWebSiteConfig = JSON.parse(configText);
    // const serviceHost = `127.0.0.1:${websiteConfig.ports.nodeAuth}`;
    let { protocol, host, pathname } = location;
    maishu_services_sdk_1.ImageService.baseUrl = `/image`;
    maishu_services_sdk_1.PermissionService.baseUrl = `/auth`;
    exports.config = {
        serviceHost: json_websiteConfig_1.serviceHost,
        shopUrl: `/UserShop/`,
        weixinUrl: `/UserWeiXin/`,
        siteUrl: `/UserSite/`,
        memberUrl: `/UserMember/`,
        accountUrl: `/UserAccount/`,
        stockUrl: `/UserStock/`,
        pageSize: 10
        // imageUrl: imageServiceBaseUrl,
    };
});
